﻿<Window x:Class="sunsetmp.DialogWindow.DownloadWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="146" WindowStyle="None" DataContext="{Binding}" Title="Загрузка" AllowsTransparency="True" Icon="/Themes/Icons/Logo.ico" Background="{x:Null}" Foreground="{x:Null}" Width="335" StateChanged="Window_StateChanged_1">
    <Window.TaskbarItemInfo>
        <TaskbarItemInfo />
    </Window.TaskbarItemInfo>
    <Border Width="auto" CornerRadius="7,7,7,7" Background="{DynamicResource MyBackground}" BorderThickness="1" BorderBrush="Black" MouseLeftButtonDown="Border_MouseLeftButtonDown_1">
        <Grid Width="auto">
            <Button Content="Отмена"  HorizontalAlignment="Center"  Name="OfflineButton" VerticalAlignment="Center" Height="23" Margin="0,100,0,0" Width="70" FontSize="12" Click="OfflineButton_Click"  />
            <Grid Height="20" Width="20" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="-1,1,1,-1">
                <Button x:Name="CloseW" Click="CloseW_Click"   />
                <Path Data="{StaticResource closeStyle0}" HorizontalAlignment="Center" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Grid>
            <Label Content="Загружается..."  HorizontalAlignment="Center" Margin="0,-3,0,0" VerticalAlignment="Top" Foreground="{DynamicResource MyTextColor}" FontSize="14"/>
            <ProgressBar Width="200" x:Name="DownloadBar" HorizontalAlignment="Center" Height="16" Margin="10,78,10,0" VerticalAlignment="Top" />
            <Label x:Name="Label" Content=""  HorizontalAlignment="Center" Margin="0,31,0,0" VerticalAlignment="Top" Foreground="{DynamicResource MyTextColor}" FontSize="14"/>
        </Grid>
    </Border>
</Window>

